ToArray Method

Task Parallel System.Threading

Copies the key and value pairs stored in the ConcurrentDictionary<(Of <(TKey, TValue>)>) to a new array.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Function ToArray As KeyValuePair(Of TKey, TValue)()
C#
public KeyValuePair<TKey, TValue>[] ToArray()

Return Value

A new array containing a snapshot of key and value pairs copied from the ConcurrentDictionary<(Of <(TKey, TValue>)>).

See Also